package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class Storages {
    //默认状态
    public static final int STATE_DEFAULT = 0;
    //付完钱的状态
    public static final int STATE_PAY = 1;
    //待审核状态
    public static final int STATE_BRING = 2;
    //批改单状态
    public static final int STATE_UPDATE = 3;
    //单据历史记录
    public static final int STATE_NOPAY = 4;
    //缴费
    public static final int STATE_INT = 5;

    private Long id;

    private String username;//车主姓名

    private String carnum;//车牌号码

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date purchasedate;//购置车辆时间

    private String numbers;//保险单号

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date put;//申请时间

    private Double limits;//投保总金额

    private Employee employees;//业务员

    private Client clients;//投保人

    private Car cars;//车辆信息

    private AgencyInfo agencyInfos;//机构信息

    private ProductInfo productInfos;//产品信息

    private Integer state;//状态

    private Double durations;//保险时长

    private Boolean pay;//缴费情况

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date paymentTime;//缴费时间

    private String method;//缴费方式
}